package Demo.MyTest;

import SE.Test6;

import java.util.LinkedList;

/**
 * @author zhuyipeng
 * @description
 * @copyright 大靓仔进击之路
 * @createDate 2023/9/23 22:51
 */
class A{
    public String name;
    public int age;
    public String sex;
    public void func(){
        System.out.println("A");
    }
    public A() {
        System.out.println("A");
    }
}
class B extends A{
    public String name;
    public int age;

    public B(String name, int age) {
        this.name = name;
        this.age = age;
    }
    public void func(){
        super.func();
        this.func2();
    }
    public void setData(B this,String name,int age){
        this.name = name;
        this.age = age;
    }
    public void func2(){
        System.out.println("B");
    }

    @Override
    public String toString() {
        return "B{" +
                "name='" + name + '\'' +
                ", age=" + age +
                '}';
    }
}
public class Test3 {
    public static void main(String[] args) {
        LinkedList<Integer> list = new LinkedList<>();
    }
}
